<?php

require_once "Security.config.class.php";
require_once "Script.config.class.php";
require_once "sql/MySQL.config.class.php";


class Profile {

	private $sqlConfig_class		= null;
	private $scriptConfig_class		= null;
	private $securityConfig_class		= null;

	function Profile() {

		$this->scriptConfig_class 	= new ScriptConfig();
		$this->securityConfig_class	= new SecurityConfig();

		/* SQL Kopfdaten */
		$this->sqlConfig_class 		= new MySQLConfig(
			"localhost",		/* Hostname */
			"xxxx",		/* Login Username */
			"yyyy",		/* Login Password */
			"zzzz",		/* Database Name */
			"twx_project_"		/* Tables Prefix */
		);
		
		/* SQL Tabellendaten fuellen */
		$this->sqlConfig_class->registerTable( "authors", 		"authors");
		$this->sqlConfig_class->registerTable( "authors_roles", 	"authors_roles");
		$this->sqlConfig_class->registerTable( "categories",		"categories");
		$this->sqlConfig_class->registerTable( "memberships",		"memberships");
		$this->sqlConfig_class->registerTable( "projects",		"projects");

		//print_r( $this->sqlConfig->getTableList() );

	}


	function getSQLConfig() {
		return $this->sqlConfig_class;
	}

	function getScriptConfig() {
		return $this->scriptConfig_class;
	}

	function getSecurityConfig() {
		return $this->securityConfig_class;
	}
}


?>